# 基础镜像
FROM  adoptopenjdk/openjdk11
# author
MAINTAINER wuyuehuan

# 挂载目录
VOLUME /home/skorse
# 创建目录
RUN mkdir -p /home/skorse
# 指定路径
WORKDIR /home/skorse
# 复制jar文件到路径
COPY ./ruoyi-modules/ruoyi-system/target/ruoyi-modules-system.jar /home/skorse/ruoyi/ruoyi-modules-system.jar
RUN chmod -R 777 /home/skorse/ruoyi/ruoyi-modules-system.jar
# 启动网关服务
ENTRYPOINT ["java","-jar","/home/skorse/ruoyi/ruoyi-modules-system.jar"]